<?php

namespace common\service\project_warning_rules;

interface ProjectWarningRuleInterface
{
    /**
     * 获得检测规则的code
     * @return string
     */
    public function getCheckCode();

    /**
     * @param $checkData
     * @return bool
     */
    public function check($checkData);

    /**
     * @return array
     */
    public function getErrorMessage();
}
